package org.cangkuguanli.luoyuhang.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.cangkuguanli.luoyuhang.bean.Gongyingshang;
import org.cangkuguanli.luoyuhang.bean.YuanGong;

@Mapper
public interface GongyingshangMapper {
    // 核对账号密码
    @Select("select * from `gongyingshang` where gongyingshang_zhanghao=#{gongyingshang_zhanghao} and gongyingshang_mima=#{gongyingshang_mima};")
    Gongyingshang login(Gongyingshang user);

    @Insert("insert into `gongyingshang` values(null,#{gongyingshang_mingchen},#{gongyingshang_lianxiren},#{gongyingshang_lianxidianhua},#{gongyingshang_zhanghao},#{gongyingshang_mima})")
    int add(Gongyingshang user);
}
